<template>
  <div class="container1">
    <el-row>
      <el-col :span="8" v-for="(item, index) in list" :key="index">
        <el-statistic
          group-separator=","
          :precision="2"
          :value="item.value2"
          :title="item.title"
        ></el-statistic>
      </el-col>
    </el-row>
    <!-- 第二行 -->
    <el-row :gutter="20" class="marginTop jucen">
      <el-col :span="4" v-for="(item, index) in two" :key="index">
        <el-statistic
          group-separator=","
          :precision="2"
          :value="item.value2"
          :title="item.title"
        ></el-statistic>
      </el-col>
    </el-row>
    <!-- 第三行 -->
    <el-row :gutter="20" class="marginTop jucen">
      <el-col :span="4" v-for="(item, index) in three" :key="index">
        <el-statistic
          group-separator=","
          :precision="2"
          :value="item.value2"
          :title="item.title"
        ></el-statistic>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          title: "广告消耗",
          value2: 238671.34,
        },
        {
          title: "广告ROL",
          value2: 238671.34,
        },
        {
          title: "累计成交金额",
          value2: 238671.34,
        },
      ],
      two: [
        {
          title: "整体ROL",
          value2: 238671.34,
        },
        {
          title: "广告成交金额",
          value2: 238671.34,
        },
        {
          title: "平均在线人数",
          value2: 238671.34,
        },
        {
          title: "GPM",
          value2: 238671.34,
        },
        {
          title: "广告GPM",
          value2: 238671.34,
        },
      ],
      three: [
        {
          title: "整体ROL",
          value2: 238671.34,
        },
        {
          title: "广告成交金额",
          value2: 238671.34,
        },
        {
          title: "平均在线人数",
          value2: 238671.34,
        },
        {
          title: "GPM",
          value2: 238671.34,
        },
        {
          title: "广告GPM",
          value2: 238671.34,
        },
      ],
    };
  },
};
</script>

<style lang="scss" >
.jucen{
    display: flex;
    justify-content: center;
    align-items: center;
}
.el-statistic .con span{
    margin-top: 10px;
    // font-weight: bold;
}

.marginTop {
  margin-top: 4.5vh;
}
.container1 {
  padding: 30px 10px;
  //   background-color: #344e7f;
}
.el-statistic .con {
  color: white;
}
.el-statistic .head {
  color: white;
  opacity: 0.6;
}
</style>